package com.zhongyewx.teachercert.framework.exception;

public class MvpViewNotAttachedException extends RuntimeException {

    public MvpViewNotAttachedException() {
        super();
    }

    public MvpViewNotAttachedException(String message) {
        super(message);
    }

    public MvpViewNotAttachedException(String message, Throwable cause) {
        super(message, cause);
    }

    public MvpViewNotAttachedException(Throwable cause) {
        super(cause);
    }

    @Override
    public String getMessage() {
        return "Please call IPresenter.attachView(IBaseView) before" + " requesting data to the IPresenter";
//        return super.getMessage();
    }
}
